package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;

public class EventoBotonPulsado implements ActionListener {
	private JTextField unTexto;
	
	public EventoBotonPulsado(JTextField texto) {
		this.unTexto = texto;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		JOptionPane.showMessageDialog(null,"Hola "+ unTexto.getText() + "!!!","Saludo",3);
	}
}
